/* 搜索框动画样式 */
@keyframes searchSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(-100%) scale(1);
  }
}

@keyframes searchSlideOut {
  0% {
    opacity: 1;
    transform: translateX(-100%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
  }
}

.search-enter {
  animation: searchSlideIn 0.3s ease-out forwards;
}

.search-exit {
  animation: searchSlideOut 0.3s ease-in forwards;
}

/* 搜索图标旋转动画 */
@keyframes searchIconSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.search-icon-spin {
  animation: searchIconSpin 0.3s ease-in-out;
}

/* 淡入淡出效果 */
.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.fade-out {
  animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
